# coding=utf-8

import os

DEBUG = True
SECRET_KEY = 'c01561cc1df6ae8d1fa0b7de4a2128b8'

WORK = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

MEDIA_PATH = os.path.join(WORK, 'media')

SITE_TITLE = u'wifi-over'
SITE_NAME = u'wifi-over'
SITE_DOMAIN = 'localhost:5000'

# SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(WORK, 'over.db')
SQLALCHEMY_DATABASE_URI = 'mysql://root:root@localhost:3306/over'
SQLALCHEMY_TRACK_MODIFICATIONS = True

MONTH_PRICE = 8
YEAR_PRICE = 68
MONTH_PRICE_INFO = u'8元每月'
YEAR_PRICE_INFO = u'68元每年'


# session
SESSION_TYPE = 'redis'
# SESSION_REDIS = '127.0.0.1:6379'
SESSION_KEY_PREFIX = 'over-session-'
# SESSION_COOKIE_SECURE = True


ALIPAY_PATH = 'https://shenghuo.alipay.com/send/payment/fill.htm'

MAIL_SITE_NAME = SITE_TITLE
# MAIL_SENDER = u'contacts@ss-over.com'
MAIL_SERVER = 'smtp.163.com'
MAIL_PORT = 25
MAIL_USERNAME = 'vpnvpnaccount@163.com'
MAIL_DEFAULT_SENDER = 'vpnvpnaccount@163.com'
MAIL_PASSWORD = 'xfbhZzy8k'
